package com.zhou.service.impl;


import com.zhou.entity.vo.Answers;
import com.zhou.entity.vo.Questions;
import com.zhou.entity.vo.QuestionsAnswers;
import com.zhou.mapper.QuestionsAnswersMapper;
import com.zhou.service.QuestionsAnswersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QuestionsAnswersServiceImpl implements QuestionsAnswersService {
    @Autowired
    private QuestionsAnswersMapper questionsAnswersMapper;

    @Override
    public List<QuestionsAnswers> selectUAndP() {
        return questionsAnswersMapper.selectUAndP();
    }

    @Override
    public void saveUsers(List<Questions> list) {
        questionsAnswersMapper.saveUsers(list);
    }

    @Override
    public void savePhones(List<Answers> list) {
        questionsAnswersMapper.savePhones(list);
    }
}
